package com.liuzihao.controller;

import com.liuzihao.domain.SysUser;
import com.liuzihao.service.SysUserService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: Liuzihao
 * @Description:
 * @Date Created in 2023-04-19 22:14
 * @Modified By:
 */
@RestController("test")
public class TestController {
    @Resource
    SysUserService service;

    @RequestMapping("test/{id}")
    SysUser test(@PathVariable String id){
        return service.getById(id);
    }
}
